package com.sdy.kzyy.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper;
import com.sdy.kzyy.biz.model.Area;
import com.sdy.kzyy.biz.mapper.AreaMapper;
import com.sdy.kzyy.biz.service.AreaService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Wrapper;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zzq
 * @since 2020-03-04
 */
@Slf4j
@Service
public class AreaServiceImpl extends BaseServiceImpl<Area> implements AreaService {
    @Autowired
    private AreaMapper areaMapper;

    @Override
    public List<Area> getAllArea() {
        List<Area> areas = areaMapper.selectList(Wrappers.<Area>lambdaQuery());
        return lambdaQuery().list();
    }
}
